< Prev(J) / Next(K) > / View :

Filename: /text/scalc/01/func_yearfrac.xhp

(bookmark: bm_id3148735)
YEARFRAC function

YEARFRAC 関数
(bookmark: bm_id3149251)

(variable: yearfrac)YEARFRAC
(variable: yearfrac)YEARFRAC(hd_id3148735.196)

The result is a number between 0 and 1, representing the fraction of a year between StartDate and EndDate.
結果は 0 から 1 の間の数で、開始日終了日の間の 1 年間を小数で表現したものです。(par_id3150899.197)

Syntax
構文(hd_id3155259.198)

YEARFRAC(StartDate; EndDate; Basis)
YEARFRAC(開始日; 終了日; 基準)(par_id3155823.199)

StartDate and EndDate are two date values.
開始日終了日 は、2 つの日付値です。(par_id3145144.200)

(section: basis)

Basis is chosen from a list of options and indicates how the year is to be calculated.
基準 はオプションのリストから選択され、どのように年が計算されるかを示します。(par_id3149954.201)

Basis
基準(par_id3146847.202)

Calculation
計算(par_id3155956.203)

0 or missing
0 または指定なし(par_id3154502.204)

US method (NASD), 12 months of 30 days each
US 方式 (NASD) 、30日×12ヶ月(par_id3149877.205)

1
1(par_id3148766.250)

Exact number of days in months, exact number of days in year
ひと月または1年の正確な日数(par_id3154326.206)

2
2(par_id3145245.251)

Exact number of days in month, year has 360 days
ひと月の正確な日数、1年は 360 日(par_id3155620.207)

3
3(par_id3145297.252)

Exact number of days in month, year has 365 days
ひと月の正確な日数、1年は 365 日(par_id3148394.208)

4
4(par_id3151022.253)

European method, 12 months of 30 days each
ヨーロッパ方式、30日×12ヶ月(par_id3150931.209)


(/section: basis)

Example
(hd_id3145626.210)

What fraction of the year 2008 lies between 2008-01-01 and 2008-07-01?
2008 年 1 月 1 日と 2008 年 7 月 1 日までは、2008 年のうち何割なのかを求めます。(par_id3149007.211)

=YEARFRAC("2008-01-01"; "2008-07-01";0) returns 0.50.
=YEARFRAC("2008-01-01"; "2008-07-01";0) は、0.50 を返します。(par_id3154632.212)


< Prev / Next >